package com.example.anliku.service;

import com.example.anliku.entity.Message;
import com.example.anliku.entity.Team;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface TeamService{


    Message deleteByPrimaryKey(Integer teamId);

    int insert(Team record);

    Message insertSelective(Team record);

    Message selectByPrimaryKey(Integer teamId);

    Message updateByPrimaryKeySelective(Team record);

    int updateByPrimaryKey(Team record);

    Message selectAll();

    Message insertTeamIdByTeamMemberId(Integer teamId,String teamMemberId);

    Message deleteByTeamIdByTeamMemberId(Integer teamId,String teamMemberId);

    Message selectMemberAll();

    Message selectMemberByTeamId(Integer teamId,@RequestParam Integer pageNum,@RequestParam Integer size);

    Message selectteamByteamMemberId(@Param("teamMemberId") String teamMemberId);

    Message selectteamByteamMainId(@Param("teamMainId") String teamMainId);

    Message selectAllByTeamMemberUserRealname(@Param("teamMemberUserRealname")String teamMemberUserRealname);

    Message selectAllByTeamId(@Param("teamId")Integer teamId);
}
